*********************************************************************************
*                                                                               *
*                              Analysis 3 										*
*                                                                               *
*                     Preparing CSES2, CSES4 data       						*
*                                                                               *
*********************************************************************************

global beg_path `"C:\Users\JohnSmith\Dropbox\Replication_EF\"'  
 

use `"${beg_path}Data\Analysis 3\cses2_stata\cses2.dta"', clear

keep B1005 B1004 B1003 B3003
rename (B1005 B1004 B1003) (respondent_id  study_id_alp study_id_num)

save `"${beg_path}Data\Analysis 3\cses2_stata\cses2_to_merge.dta"', replace
 
use `"${beg_path}Data\Analysis 3\cses4_stata\cses4.dta"', clear

keep D1005 D1004 D1003 D3019-D3023_6
rename (D1005 D1004 D1003) (respondent_id  study_id_alp study_id_num)

save `"${beg_path}Data\Analysis 3\cses4_stata\cses4_to_merge.dta"', replace

